package com.yauthor.module.time
{
	public interface ITimeCountingController
	{
		/**
		 * Initializes the class
		 * 
		 * @param pagesCount number of pages in the test
		 */
		function initialize(pagesCount:Number):void;
		
		/**
		 * Called when the page is opened (loaded and ready)
		 * @param index index of the current page
		 */
		function onPageOpened(index:Number):void;
		
		/**
		 * Called when the current page is closed (unloaded)
		 */
		function onPageClosed():void;
		
		/**
		 * Get total time spent on the selected page in [ms]
		 */
		function getPageTimeAt(index:Number):Number;
		
		/**
		 * Get total time spent on the test in [ms] 
		 */
		function getTestTime():Number;
	}
}